package demo2;


import com.mchange.v2.c3p0.ComboPooledDataSource;

import java.sql.Connection;
import java.sql.SQLException;

/**
 * @description: 使用C3P0的数据库连接池进行封装
 * @author: apple
 * @date:  2022/1/29 6:48 下午
 * @version 1.0
 **/
public final class JDBCUtils {


   private static ComboPooledDataSource cpds = new ComboPooledDataSource("intergalactoApp");

    public static Connection getConnection() throws SQLException {


        return cpds.getConnection();

    }

}
